package com.boardgame.gwt.data.space;

import java.util.ArrayList;
import java.util.List;

/**
 * 灾难各自
 * @author henry
 */
public class GwtSpaceHazard extends GwtSpace{
    public GwtSpaceHazard(){
        this.setSize(1);
    }

    /**
     * 创建灾难列表
     * @return
     */
    public static List<GwtSpace> createHazardList(){
        List<GwtSpace> list=new ArrayList<>();
        list.add(new GwtSpaceHazard00());
        list.add(new GwtSpaceHazard01());
        list.add(new GwtSpaceHazard02());
        list.add(new GwtSpaceHazard03());
        list.add(new GwtSpaceHazard30());
        list.add(new GwtSpaceHazard31());
        list.add(new GwtSpaceHazard32());
        list.add(new GwtSpaceHazard110());
        list.add(new GwtSpaceHazard111());
        list.add(new GwtSpaceHazard112());
        list.add(new GwtSpaceHazard113());
        return list;
    }
}

class GwtSpaceHazardWater extends GwtSpaceHazard{
    public GwtSpaceHazardWater(){
        this.setBordersize(2);
        this.setBordercolor("blue");
    }
}

class GwtSpaceHazard00 extends GwtSpaceHazardWater{
    public GwtSpaceHazard00(){
        this.setRow(0);
        this.setColumn(0);
    }
}

class GwtSpaceHazard01 extends GwtSpaceHazardWater{
    public GwtSpaceHazard01(){
        this.setRow(0);
        this.setColumn(1);
    }
}

class GwtSpaceHazard02 extends GwtSpaceHazardWater{
    public GwtSpaceHazard02(){
        this.setRow(0);
        this.setColumn(2);
    }
}

class GwtSpaceHazard03 extends GwtSpaceHazardWater{
    public GwtSpaceHazard03(){
        this.setRow(0);
        this.setColumn(3);
    }
}

class GwtSpaceHazardYellow extends GwtSpaceHazard{
    public GwtSpaceHazardYellow(){
        this.setBordersize(2);
        this.setBordercolor("yellow");
    }
}

class GwtSpaceHazard30 extends GwtSpaceHazardYellow{
    public GwtSpaceHazard30(){
        this.setRow(3);
        this.setColumn(0);
    }
}

class GwtSpaceHazard31 extends GwtSpaceHazardYellow{
    public GwtSpaceHazard31(){
        this.setRow(3);
        this.setColumn(1);
    }
}

class GwtSpaceHazard32 extends GwtSpaceHazardYellow{
    public GwtSpaceHazard32(){
        this.setRow(3);
        this.setColumn(2);
    }
}

class GwtSpaceHazardGrey extends GwtSpaceHazard{
    public GwtSpaceHazardGrey(){
        this.setBordersize(2);
        this.setBordercolor("gray");
    }
}

class GwtSpaceHazard110 extends GwtSpaceHazardGrey{
    public GwtSpaceHazard110(){
        this.setRow(11);
        this.setColumn(0);
    }
}

class GwtSpaceHazard111 extends GwtSpaceHazardGrey{
    public GwtSpaceHazard111(){
        this.setRow(11);
        this.setColumn(1);
    }
}

class GwtSpaceHazard112 extends GwtSpaceHazardGrey{
    public GwtSpaceHazard112(){
        this.setRow(11);
        this.setColumn(2);
    }
}

class GwtSpaceHazard113 extends GwtSpaceHazardGrey{
    public GwtSpaceHazard113(){
        this.setRow(11);
        this.setColumn(3);
    }
}
